import {defineStore} from 'pinia'
import {ref} from 'vue'

export const usePayStore = defineStore('pay', () => {
    // 
    const payPrice = ref(null)

    // action
    function getPayPrice(price) {
        console.log(price);
        payPrice.value = price
    }

    return {
        payPrice,
        getPayPrice
    }

}, {
    persist: true
})